package com.yanqu.road.entity.log;


import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_winery_upgrade", desc = "酒坊解锁升级日志", autoSave = true, uploadCk = true)
public class LogWineryUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "升级类型1勋章2工艺")
    private int upgradeCategory;


    @FieldTypeAnnotation(desc = "相关id")
    private int relationId;

    @FieldTypeAnnotation(desc = "升级前等级")
    private int preLevel;

    @FieldTypeAnnotation(desc = "升级后等级")
    private int level;

    @FieldTypeAnnotation(desc = "消耗")
    private String cost;

    public LogWineryUpgrade(long userId, int upgradeCategory, int relationId, int preLevel, int level, String cost) {
        this.userId = userId;
        this.upgradeCategory = upgradeCategory;
        this.relationId = relationId;
        this.preLevel = preLevel;
        this.level = level;
        this.cost = cost;
    }

    public long getUserId() {
        return userId;
    }
}
